AUTOMAKE_OPTIONS=	foreign

BUILT_SOURCES=	ntpq.texi 
man_MANS=	ntpq-man.ps ntpq-mdoc.ps 
run_ag=		cd $(srcdir) && autogen -L $(srcdir) --writable

$(srcdir)/ntpq-man.ps: $(srcdir)/ntpq.def $(srcdir)/agman8.tpl 
	$(run_ag) -Tagman8.tpl -Lscripts -bntpq-man.ps ntpq.def

$(srcdir)/ntpq-mdoc.ps: $(srcdir)/ntpq.def $(srcdir)/agmdoc8.tpl
	$(run_ag) -Tagmdoc8.tpl -bntpq-mdoc.ps ntpq.def

$(srcdir)/ntpq.texi: $(srcdir)/ntpq.def $(srcdir)/aginfo.tpl
	$(run_ag) -Taginfo.tpl -DLEVEL=unnumberedsec ntpq.def


